package com.avengers.core.model.db;

/**
 * 运算符
 *
 * @author yu.wang
 * @since 2018-04-18 下午2:11
 */
public enum Operator {
    /**
     * &
     */
    and(" & "),
    or(" | "),
    xor(" ^ "),
    not(" ! "),
    ADD(" + "),
    SUBTRACT(" - "),
    MULTIPLY(" * "),
    DIVIDE(" / ");

    public final String value;

    Operator(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.value;
    }
}
